// 获取到QQ音乐的歌手，封装成singer对象
export default class Singer {
  // 这里传递的参数是一个对象
  constructor ({id, name}) {
    this.id = id
    this.name = name
    this.avatar = `https://y.gtimg.cn/music/photo_new/T001R300x300M000${id}.jpg?max_age=2592000`
  }
}

export class SingerForSearch {
  // 这里传递的参数是一个对象
  constructor ({id, name}) {
    this.id = id
    this.name = name
    this.avatar = `https://y.gtimg.cn/music/photo_new/T001R300x300M000002azErJ0UcDN6.jpg?max_age=2592000`
  }
}
